package edu.tongji.structureplayer.structure {
    
    /**
    * Represents a node in a structure which has only two properties assoiciated
    * to it, the x coordinate and y coordinate of the node.
    */
    public class Node extends BaseStructure {
        
        private var _x:Number;
        private var _y:Number;
        
        
        public function Node(name:String, x:Number, y:Number) {
            super(name);
            //_name = name;
            _x = x;
            _y = y;
        }
        
        public function get x():Number
        {
            return _x;
        }
        
        public function set x(value:Number):void
        {
            _x = value;
        }
        
        public function get y():Number
        {
            return _y;
        }
        
        public function set y(value:Number):void
        {
            _y = value;
        }
        
        public function debugPrint():void
        {
            trace("Node " + name + "(" + _x + ", " + _y + ")");
        }
        
    }
}